package com.gary.shiro.redis;

/**
 * @author peng_rui
 * @date 2022/4/19
 */
public interface ILock {
    /**
     * 尝试加锁
     * @param timeoutSec
     * @return
     */
    Boolean tryLock(Long timeoutSec);

    /**
     * 释放锁
     * @return
     */
    Boolean unLock();
}
